<template>
    <div>
        <content-table
           :tableData='tableData'
           :colConfigs='colConfigs'
        ></content-table>
    </div>
</template>

<script>
    import contentTable from '../components/contentTable'
    import { mapState } from 'vuex'
    export default {
        name: "approve",
        data(){
            return {
                colConfigs: [
                    { prop: 'id', label: 'id' },
                    { prop: 'title', label: '文章名' },
                    { prop: 'imgUrl', label: '封面' },
                    { prop: 'type', label: '类型' },
                    { prop: 'aId', label: '审核人' },
                    { prop: 'atime', label: '审核日期' },
                    { prop: 'proId', label: '发布人' },
                    { prop: 'ptime', label: '发布日期' },
                    { prop: 'confidence', label: '置信度' },
                    { prop: 'originaldate', label: '文章日期' },
                    { slot: '审核'}
                ],
                count: 30,
            }
        },
        components: {
            contentTable
        },
        created () {
            this.$store.dispatch('getContentList')
        },
        computed: mapState({
            tableData: 'contentList'
        })

    }
</script>

<style scoped>

</style>
